import unittest

if __name__ == '__main__':
    test_dir = r'..\test_case'
    discover = unittest.defaultTestLoader.discover(test_dir, pattern='test*.py')  # 批量加载测试用例

    runner = unittest.TextTestRunner()
    runner.run(discover)  # 批量执行测试用例
